package command;


public class MainTest22 {
    public static void main(String[] args) {
        SaleMan saleman = new SaleMan();
        Command appleCommand = new AppleCommand(saleman);
        Command bananaCommand = new BananaCommand(saleman);
        Waiter waiter = new Waiter();
        waiter.setOrder(appleCommand);
        waiter.setOrder(bananaCommand);
        waiter.sell();
    }
}
